import request from '@/utils/request'

// 查询
export function getDataList (query) {
  return request({
    url: '/appKey',
    method: 'GET',
    params: query
  })
}

// 新增
export function addData (data) {
  return request({
    url: '/appKey',
    method: 'POST',
    data: data
  })
}

// 修改
export function updateData (data) {
  return request({
    url: '/appKey',
    method: 'PUT',
    data: data
  })
}

// 删除
export function delData (dataId) {
  return request({
    url: '/appKey/' + dataId,
    method: 'DELETE'
  })
}
